package com.gzist.security4.mapper;

import com.gzist.security4.domain.Permission;
import com.gzist.security4.domain.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
* @author 黄泽建
* @description 针对表【role】的数据库操作Mapper
* @createDate 2024-05-14 00:46:24
* @Entity com.gzist.security4.domain.Role
*/
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    List<Permission> getPermissionByRoleId(Long id);


    List<Permission> getPermissionByRoleIds(Set<Long> roleIds);
}




